package love.contact;

import wwk.common.widget.NavigationBar;
import android.graphics.Color;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.text.util.Linkify;
import android.widget.TextView;
import wwk.common.util.FileUtil;

public class IntroductionActivtiy extends BaseActivity {

	@Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.introduction_activity);
		
		NavigationBar nav=(NavigationBar)this.findViewById(R.id.navBar);
        nav.setTitle(this.getString(R.string.softhelp));
        nav.setBackButton(R.layout.common_nav_back_button);
        nav.activity=this;
 
        TextView textView=(TextView)findViewById(R.id.textView);
        textView.setMovementMethod(ScrollingMovementMethod.getInstance());
        textView.setAutoLinkMask(Linkify.EMAIL_ADDRESSES | Linkify.WEB_URLS);
        textView.setTextSize(15.5f);
        textView.setTextColor(Color.BLACK);
        textView.setPadding(10,0,10,0);

        String text=FileUtil.getStringFromAssets(this, "about.txt", "utf8");
        //text=text.replace("$version$",getString(R.string.app_vname));
        //text=text.replace("$buildDate$",getString(R.string.buildDate));
        textView.setText(text); 
    }
	
		
}